
import Layout from '@/layout'
import { roterPre } from '@/settings'
const productRouter =
  {
    path: `${roterPre}/tour`,
    name: 'tour',
    component: Layout,
    meta: {
      icon: 'dashboard',
      title: '旅游产品'
    },
    alwaysShow: true,
    redirect: 'noRedirect',
    children: [
      {
        path: 'index',
        name: `index`,
        meta: {
          title: '旅游产品',
          noCache: true
        },
        component: () => import('@/views/tour/index/index.vue')
      },
      {
        path: 'addTour/:id?/:edit?',
        component: () => import('@/views/tour/index/add/index.vue'),
        name: 'addTour',
        meta: { title: '旅游产品添加', noCache: true,activeMenu: `${roterPre}/tour/index` },
        hidden: true
      },

      {
        path: 'ticket',
        name: `ticket`,
        meta: {
          title: '门票',
          noCache: true
        },
        component: () => import('@/views/tour/ticket/index.vue')
      },
      {
        path: 'addTicket/:id?/:edit?',
        component: () => import('@/views/tour/ticket/add/index.vue'),
        name: 'addTicket', 
        meta: { title: '门票添加', noCache: true ,activeMenu: `${roterPre}/tour/ticket` },
        hidden: true
      },


      {
        path: 'bus',
        name: 'bus',
        meta: {
          title: '直通车',
          noCache: true
        },
        // redirect: 'noRedirect',
        component: () => import('@/views/tour/bus/index.vue'),
        children: [
          {
            path: 'busList',
            name: `busList`,
            meta: {
              title: '列表',
              noCache: true
            },
            component: () => import('@/views/tour/bus/list/index.vue')
          },
          {
            path: 'addBus/:id?/:edit?',
            component: () => import('@/views/tour/bus/list/add/index.vue'),
            name: 'addBus', 
            meta: { title: '直通车添加', noCache: true, activeMenu: `${roterPre}/tour/bus/busList` },
            hidden: true
          },
          {
            path: 'addProductBus/:id?/:edit?',
            component: () => import('@/views/tour/bus/list/busProductAdd/index.vue'),
            name: 'addProductBus', 
            meta: { title: '直通车添加', noCache: true , activeMenu: `${roterPre}/tour/bus/busList`},
            hidden: true
          },
          {
            path: 'linePlan',
            component: () => import('@/views/tour/bus/linePlan/index.vue'),
            name: 'linePlan', 
            meta: { title: '直通车排班', noCache: true },
          },
     
        ]
      },

     
    
      
      
    ]
  }

export default productRouter
